package com.example.helloworld;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;

/*
 * This activity will be the starting point for the mobile application
 * 
 */
public class MainActivity extends Activity {
    public final static String EXTRA_MESSAGE = "com.example.helloworld.MESSAGE";
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_selection);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
    public void displayAvatarActivity(View view){
        // Start the avatar activity
        Intent myIntent = new Intent(this, DisplayAvatarActivity.class);
        startActivity(myIntent);
    }
    public void displayAdsActivity(View view){
        // Start the earning Frienducats activity
        Intent myIntent = new Intent(this, DisplayAdsActivity.class);
        startActivity(myIntent);
    }
    
    public void displayAcceptBetsActivity(View view){
        // Start the activity used to accept bets
        Intent myIntent = new Intent(this, DisplayBetActivity.class);
        startActivity(myIntent);
    }
    
    public void displayPostBetsActivity(View view){
    	// Start the activity used to post bets
        Intent myIntent = new Intent(this, PostBetsActivity.class);
        startActivity(myIntent);
    }
    public void switchPlayer(View view){
    	// TODO Add code to pull the frienducat count from the server
    	// TODO Add code to get the avatar list from the server
    	// Use a Singleton object to keep track of the avatar list for a single player
    }
}
